using System.Text.Json.Serialization;

namespace Eamon.MeituanDotnetSDK.model.ddzh.tuangou.tuangouReceiptQueryProduct
{
    /// <summary>
    /// 标品信息
    /// </summary>
    public class SpuMerchantProductDTO
    {
        /// <summary>
        /// 核销标品时验券接口返回的productItemId对应此skuId
        /// </summary>
        [JsonPropertyName("platformProductSkuId")]
        public long? PlatformProductSkuId { get; set; }

        /// <summary>
        /// 标品ID
        /// </summary>
        [JsonPropertyName("spuId")]
        public long? SpuId { get; set; }

        /// <summary>
        /// 城市名称
        /// </summary>
        [JsonPropertyName("cityName")]
        public string CityName { get; set; }

        /// <summary>
        /// 标品名称
        /// </summary>
        [JsonPropertyName("platformProductName")]
        public string PlatformProductName { get; set; }

        /// <summary>
        /// 标品价格
        /// </summary>
        [JsonPropertyName("platformProductPrice")]
        public double? PlatformProductPrice { get; set; }

        public override string ToString()
        {
            return $"SpuMerchantProductDTO{{PlatformProductSkuId={PlatformProductSkuId}, SpuId={SpuId}, CityName={CityName}, PlatformProductName={PlatformProductName}, PlatformProductPrice={PlatformProductPrice}}}";
        }
    }
}
